{% extends "moko_base.html" %}

{% block body %}
	<div id="topgirlalbum">
		<div class="desc">{{album.title}}</div>
		{% if is_admin %}
		<div class="mokolink"><a href="{{album.url}}">moko album</a></div>
		<div class="command">
			<a href="/task/album?album={{album.url|escape}}">Fetch album</a>
			<a href="/task/reloadalbum?album={{album.key|escape}}">Reload Album</a>
		</div>
		<h2>Photos:{{album.get_photo_count}}{% if is_admin %}/{{album.count_photo}}{% endif %}</h2>
		{% endif %}
	</div>
	<div id="photo-list">
		<ul class="gallery">
		{% for photo in photos %}
			<li class="photo">
				<img src="{{host_img}}/{{album.model.username}}/{{photo.url|imagename}}" />
				<p class="comment">{{photo.comment}}</p>
			</li>
		{% endfor %}
		</ul>
	</div>
{% endblock %}
{% block footer %}
{% endblock %}